﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NSDecisionTree.Gui
{
    public partial class SaveFileDialogExtender : Form
    {

        #region needed Vars

        string delimiter = ",";

        public string Delimiter
        {
            get { return delimiter; }
        }

        #endregion

        #region ctor

        public SaveFileDialogExtender()
        {
            InitializeComponent();
            textBox1.Text = delimiter;

        }

        #endregion

        #region Menues and Events

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                delimiter = textBox1.Text;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Es ist ein Fehler aufgetreten. Die Defaulteinstellungen werden genutzt.");
            }
        }

        #endregion

    }
}
